<template>
  <d2-container>
  <div class="noticelist">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span style="font-weight:600;font-size:18px;">公告</span>
      </div>
      <div class="text">
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="date" label="ID" width="180"></el-table-column>
          <el-table-column prop="name" label="日期" width="300"></el-table-column>
          <el-table-column prop="address" label="内容"></el-table-column>
        </el-table>
      </div>
    </el-card>
  </div>
  </d2-container>
</template>

<script>
import { userinfo } from '../../../api/api'
  export default {
    name: "noticelist",
    data(){
      return{
        tableData:[],
      }
    },
    methods:{
      //获取用户信息
      getUser(){
        userinfo().then(res=>{
          if(res.Status == 200){
            this.$emit('getMoney',res.Data.money)
          }else{
            this.$message.error(res.Message)
          }
        })
      },
    },
    mounted(){
      this.getUser()
    },
  }
</script>

<style scoped>

</style>
